package com.his.config;


import org.apache.shiro.authc.AuthenticationToken;


public class JwtToken implements AuthenticationToken {



    private final String jwt;
    private final String usernaem;


    public JwtToken(String jwt) {
        this.jwt = jwt;
        this.usernaem = JwtUtils.getUsername(jwt);
    }

    @Override
    public Object getPrincipal() {
        return usernaem;
    }

    @Override
    public Object getCredentials() {
        return jwt;
    }
}
